import request from '@/utils/request'

// 查询基础分类列表
export function listSupplyCategroy(query) {
  return request({
    url: '/system/supplyCategroy/list',
    method: 'get',
    params: query
  })
}

// 查询基础分类详细
export function getSupplyCategroy(id) {
  return request({
    url: '/system/supplyCategroy/' + id,
    method: 'get'
  })
}

// 新增基础分类
export function addSupplyCategroy(data) {
  return request({
    url: '/system/supplyCategroy',
    method: 'post',
    data: data
  })
}

// 修改基础分类
export function updateSupplyCategroy(data) {
  return request({
    url: '/system/supplyCategroy',
    method: 'put',
    data: data
  })
}

// 删除基础分类
export function delSupplyCategroy(id) {
  return request({
    url: '/system/supplyCategroy/' + id,
    method: 'delete'
  })
}
